<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<script type="text/javascript"src="jquery-2.1.4.js"></script>
<body>
<div id="n1">
    <p id="n2"><span>CodePlayer</span></p>
    <p id="n3"><span>专注于编程开发技术分享</span></p>
    <em id="n4">http://www.365mini.com</em>
</div>
<p id="n5">Google</p>
<script>
    $("div").on("click", "p", function(){
        // 这里的this指向触发点击事件的p元素(Element)
        alert( $(this).text() );
    });
</script>
</body>
</html>